package com.ychen.demo.test;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author chenyuliao
 * @Date 2019/8/31 0:20
 */
@RestController
public class HelloController {

    @RequestMapping("getUser")
    public  User getUser(@RequestBody Map<String,Object> user) {
        System.out.println("hello");
        return (User) user;
    }


}
